package com.pan.service;

import com.pan.common.service.BaseService;
import com.pan.dto.Dog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service
public class DogService {

    @Autowired
    private BaseService baseService;

    public void control(){
        System.out.println("the dog is control the cat.");
        baseService.read();
        String name = "aaa";
        name.equalsIgnoreCase("AAA");

    }

    public String getOneDog() {

        Dog dog = new Dog();
        dog.setName("little");
        dog.setAge("10");
        dog.setGender("male");
        dog.setKind("garden");
        return dog.toString();

    }
}
